document.addEventListener("DOMContentLoaded", function () {
    refresh()
    window.addEventListener("resize", function () {
        refresh()
    })
    function refresh() {
        let scale = 1.0 / window.devicePixelRatio;
        document.querySelector("meta[name='viewport']").setAttribute('content' ,
            "width = device-width" +
            ",initial-scale = " + scale +
            ",maximum-scale="+scale+
            ",minimum-scale="+scale +
            ",user--scalable=no")
        document.documentElement.style.fontSize = window.innerWidth / 15 + "px"
        let wrapper = document.querySelector("#wrapper")
        wrapper.style.height = window.innerHeight + "px";
        wrapper.style.width = window.innerWidth + "px";
    }
})
